package com.jy.adscm.operation.purchase.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.Serializable;

/**
 * <p>
 * 采购计划清单
 * </p>
 *
 * @author lzf
 * @since 2019-05-07
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PurchasePlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 供应商基本信息
     */
    @TableField("sid")
    private Long sid;
    /**
     * 物料基本信息
     */
    @TableField("bid")
    private Long bid;
    /**
     * 需求数量
     */
    @TableField("needNums")
    private double needNums;
    /**
     * 库存数量
     */
    @TableField("inventoryNums")
    private Double inventoryNums;
    /**
     * 货物预计到达日期
     */
    @TableField("planArriveDate")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date planArriveDate;
    /**
     * 单价
     */
    private double price;
    /**
     * 总价
     */
    private double total;
    /**
     * 下单日期
     */
    @TableField("needDate")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date needDate;

    /**
     * 货物最晚到达日期
     */
    @TableField("orderTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    /**
     * 生成订单后为0，确认订单后修改为1，直接把任务添加到待办采购任务
     */
    @TableField("status")
    private Integer status;
    @TableField("miniPurchase")
    private String miniPurchase;
    private String createor;
    @TableField(exist = false)
    private String createorName;
    @TableField(exist = false)
    private String bomName;
    @TableField(exist = false)
    private String supplierName;
    @TableField("createTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 令号
     */
    @TableField("makeNo")
    private String makeNo;
    /**
     * 交货时间
     */
    @TableField("deliveryTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;

    @TableField("planPaymentTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date  planPaymentTime;
    /**
     * 付款方式如果是预付款要把 预付款和预付款金额拼接到一起（预付款30%）
     */
    @TableField("paymentMethod")
    private String paymentMethod;
}
